<!-- 参考手册：https://www.baidu.com/link?url=bvd2qtKDR-EoOt9D1_PHmvV-e5f2eCzwWjO0TZDtILvTi_LLt_vHRtcAJ3tzDmxv7u5XAvF6WMa1qBmU0vm47MAa_YdwmGEsZlRSLlMeMQ3&wd=&eqid=e9af247100027608000000066656cb44 -->
<template>
	<div v-for="(item, index) in _d.tab" :key="index" :ref="el => {tabRef[index] = el}"></div>

	<button @click="showRef()">点击</button>
</template>
<script setup>

const tabRef = ref([]);

const _d = reactive({
	tab: [
		{name: '员工评论', total: 0},
		{name: '操作日志', total: 0}
	]
})

const showRef = () => {
	console.log(tabRef.value[1])
}

</script>

